package com.lt.bcra.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 生活习惯表
 * </p>
 *
 * @author LuoTian
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BcraLifeHabits对象", description="生活习惯表")
public class BcraLifeHabits implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "生活习惯主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "您吸烟吗")
    private String smoke;

    @ApiModelProperty(value = "您烟龄有多长")
    private String smokeTime;

    @ApiModelProperty(value = "您平均每周有几天会被动吸烟?(被动吸烟指暴露在烟雾中15分钟)")
    private String smokePerWeek;

    @ApiModelProperty(value = "您饮酒吗")
    private String drink;

    @ApiModelProperty(value = "创建日期")
    @TableField(fill= FieldFill.INSERT)//创建时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改日期")
    @TableField(fill= FieldFill.INSERT_UPDATE)//创建和修改时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "编辑者")
    private String editor;

    @ApiModelProperty(value = "编辑者主键")
    private Integer editoId;

    @ApiModelProperty(value = "对应模块标题")
    private String moduleTitle;

    @ApiModelProperty(value = "模板id")
    private Integer moduleId;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted",fill= FieldFill.INSERT)//创建时候自动填充逻辑删除标识
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "问卷编号")
    private String questionnaireCode;


}
